package cn.broadsense.handler;

import cn.broadsense.biz.service.ChannelDataService;
import cn.broadsense.xxl.job.core.context.XxlJobHelper;
import cn.broadsense.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author lijian
 * @description
 * @date 2024年09月26日 下午4:17
 */
@Component
public class ChannelDataSyncJob {

    @Resource
    private ChannelDataService dataService;


    @XxlJob("ChannelDataSyncJob")
    public void syncJob() {
        XxlJobHelper.log("syncJob 开始执行.....");
        dataService.syncDataForJob();
        XxlJobHelper.log("syncJob 执行结束.....");
    }
}
